import request from '@/utils/request'

export function submit(data) {
  return request({
    url: 'buss/safeproblemdeal/add',
    method: 'post',
    data
  })
}

export function getOne(id) {
  return request.get('buss/safeproblemdeal/getOne?id='+id)
}

export function listPage(data) {
  return request.post('buss/safeproblemdeal/listPage', data)
}

export function del(ids) {
  return request({
    url: 'buss/safeproblemdeal/del',
    method: 'post',
    data: ids
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/safeproblemdeal/edit',
    method: 'post',
    data
  })
}

export function audit(data) {
  return request({
    url: 'buss/safeproblemdeal/audit',
    method: 'post',
    data
  })
}


export function report(data) {
  return request({
    url: 'buss/safeproblemdeal/report',
    method: 'post',
    data
  })
}

export default {
  submit,
  getOne,
  del,
  audit,
  report,
  resubmit,
  listPage
}
